﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucInvest.ascx.cs" Inherits="Controls_ucInvest" %>
<div class="bit_box" style="height: 100%; overflow: hidden">
    <div class="header">
        <span>Cùng đầu tư</span>
    </div>
    <asp:Repeater ID="rptInvest" runat="server">
        <ItemTemplate>
            <asp:Repeater ID="rptTest" runat="server" DataSource='<%#loadInvest(Eval("PRODUCT_ID").ToString()) %>'>
                <ItemTemplate>
                    <div class="bid_content" style="padding: 11px 13px; border-top: 1px dotted #434343">
                        <img src="<%#loadUrl(Eval("THUMB_IMAGE").ToString()) %>" width="70" height="70" />
                        <p class="title" style="width: 135px; float: left; padding-left: 20px">
                            <%#Eval("PRODUCT_NAME") %></p>
                        <p style="width: 135px; float: left; padding-left: 20px">
                            Bước giá:
                            <%#Eval("STEP_PRICE")%>
                        </p>
                        <p style="width: 135px; float: left; padding-left: 20px">
                            Số lần bid:
                            <%#Eval("TOTAL_BID") %>
                        </p>
                        <%Counter++; %>
                        <p style="width: 135px; float: left; padding-left: 20px" id="counter<%=Counter %>">
                            <%#Convert.ToDateTime(Eval("End_date")).ToString("yyyy/MM/dd hh:mm:ss") %>
                        </p>
                        <script type="text/javascript">
                            var count<%=Counter %> = new countDown(new Date(document.getElementById('counter<%=Counter %>').innerHTML), 'counter<%=Counter %>', 'Đã hết hạn');
                        </script>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </ItemTemplate>
    </asp:Repeater>
</div>
